package com.lyh.hkcloud;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import com.lyh.hkcloud.activity.LoginActivity;
import com.lyh.hkcloud.base.BaseActivity;

public class MainActivity extends BaseActivity {


    private Button btn_create_account;
    private Button btn_sign_in;

    @Override
    protected Activity getActivity() {
        return this;
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_main;
    }

    @Override
    protected void initView() {
        btn_create_account = findViewById(R.id.btn_create_account);
        btn_sign_in = findViewById(R.id.btn_sign_in);
        getSupportActionBar().hide();
    }

    @Override
    protected void initEvent() {
        btn_sign_in.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, LoginActivity.class);
                MainActivity.this.startActivity(intent);
            }
        });
    }


}